#ifndef __STATIS__
#define __STATIS__

#include <sys/time.h>
#include <inttypes.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
	IOPS,
	THROUGHPUT,
	LATENCY,
	QUEUE_LENGTH,
#ifndef LIB_VOLUME_SO
	FD_NUMBER,
	IN_CONNECT,
#endif
	OUT_CONNECT,
	TYPE_MAX,
} ursax_statis_types;


void ursax_statis_set_value(ursax_statis_types, int);
void ursax_statis_report(ursax_statis_types, char *, int);
void ursax_statis_report_all(char *, int);
int ursax_statis_init(void);
void ursax_statis_fini(void);
uint64_t statis_begin_io(void);
void statis_end_io(uint64_t, uint32_t);

#ifdef __cplusplus
}
#endif

#endif
